# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time
  
  # See ActionController::RequestForgeryProtection for details
  # Uncomment the :secret if you're not using the cookie session store
  protect_from_forgery :secret => '4734e30133746af25aedea3f871f1f80'
#  def rescue_action_in_public(exception)  
#    logger.error("rescue_action_in_public executed")  
#    case exception  
#      when ActiveRecord::RecordNotFound, ::ActionController::RoutingError,    
#      ::ActionController::UnknownAction  
#      logger.error("404 displayed")  
#      render(:file  => "#{RAILS_ROOT}/public/404.html",  
#      :status   => "404 Not Found")  
#    else  
#      logger.error("500 displayed")  
#      render(:file  => "#{RAILS_ROOT}/public/500.html",  
#      :status   => "500 Error")  
#            SystemNotifier.deliver_exception_notification(self, request,    
#                                                          exception)  
#    end  
#  end
#  
#  def local_request?
#    false
#  end

  def render_to(action_name)
    "management/users/#{action_name}"
  end
  
end
